package com.itheima.consumer.constant;

/**
 * @author ChenPi
 * @since 2025/03/06 14:34
 */
public class MqConstants {

    // Exchange常量层
    public static class Exchange {
        public static final String HMALL_FANOUT = "hmall.fanout";
        public static final String HMALL_DIRECT = "hmall.direct";
        public static final String HMALL_TOPIC = "hmall.topic";
    }

    // Queue常量层
    public static class Queue {
        public static final String FANOUT_QUEUE1 = "fanout.queue1";
        public static final String DIRECT_QUEUE2 = "direct.queue2";
        public static final String TOPIC_QUEUE1 = "topic.queue1";
    }

    // RoutingKey常量层
    public static class RoutingKey {
        public static final String COLOR_RED = "red";
        public static final String CHINA_NEWS = "china.#";
    }
}
